package com.bit.demo.springlogdemo.facade;

public class FacadeClient {
    private LivingLight livingLight = new LivingLight();
    private HallLight hallLight = new HallLight();
    private BedRoomLight bedRoomLight = new BedRoomLight();
    public void off() {
        System.out.println(" BedRoomLight off");
        bedRoomLight.off();
        System.out.println(" HallLight off");
        hallLight.off();
        System.out.println(" LivingLight off");
        livingLight.off();
    }
    public void on() {
        System.out.println(" BedRoomLight on");
        bedRoomLight.on();
        System.out.println(" HallLight on");
        hallLight.on();
        System.out.println(" LivingLight on");
        livingLight.on();
    }
}
